<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/style.css">
<title>八维贴吧</title>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-3.2.1.js">
</script>
</head>
<body>
	<!-- 包含header.jsp -->
	<jsp:include page="/WEB-INF/view/common/header.jsp" />

	<!-- ///////////////////////////////自己开发部分中间部分开始/////////////////////////// -->

	<div class="container border-1">
		<div class="row">

			<!-- 个人信息的左侧部分 -->
			<jsp:include page="/WEB-INF/view/my/left.jsp" />

			<!-- 中间部分 -->
			<div class="col10 bg-white" style="padding-left: 50px">

				<br>
				<table class="table-borderless">
					<thead>
						<tr>
							<th width="50%">标题</th>
							<th>版块</th>
							<th>类型</th>
							<th>楼层数</th>
							<th>发布时间</th>
							<!-- <th>操作</th> -->
						</tr>
					</thead>
					<tbody>


						<c:forEach var="topic" items="${topics }">
							<tr>
								<td><a href="${pageContext.request.contextPath}/my/topicRelpy?id=${topic.id}" target="_blank">${topic.title }</a></td>
								<td>${topic.forum.name }</td>
								<td>${topic.type.displayName}</td>
								<td>${topic.floors }</td>
								<td><fmt:formatDate value="${topic.postTime}"
						pattern="yyyy-MM-dd HH:mm:ss" /></td>
								<!-- <td><a href="/my/topic?id=5">修改</a></td> -->
							</tr>
						</c:forEach>

					</tbody>
				</table>
				<br>
				 <br>



			</div>



		</div>
	</div>




	<!-- ///////////////////////////////自己开发部分中间部分开始/////////////////////////// -->

	<!-- jsp包含尾部footer.jsp -->
	<jsp:include page="/WEB-INF/view/common/footer.jsp" />
	
	
	
  <form style="display: none;" id="pageFrm" action="${pageContext.request.contextPath}/my/topics" method="post">
     <input type="text" id="pageNum" value="${pageInfo.pageNum}" name="pageNum"/>
  </form>
  
  
	<script type="text/javascript">
    function searchData(pageNum){
        $("#pageNum").val(pageNum);
        $("#pageFrm").submit();
     }

    </script>
  
  
</body>
</html>